import request from '@/utils/request.js'

//登录
export const userLoginService=(loginData)=>{
    return request.post('/user/login',loginData)
}


//注册
export const userRegisterService=(RegisterData)=>{
    return request.post('/user/register',RegisterData)
}

//根据token查询当前用户
export const getUserService=()=>{
    return request.get('/user')
}

//修改密码
export const changePassService=(data)=>{
    return request.post('/user/changePass',data)
}


//修改用户数据
export const userUpdate=(data)=>{
    return request.post('/user/update',data)
}

//弹出成功的通知
export const conSuccessService=()=>{
    return request.post('/user/conSuccess')
}

//修改来访者
export const updateClientService=(data)=>{
    return request.post('/admin/updateClient',data)
}



//根据userid获取咨询师id
export const getCouIdService=(id)=>{
    return request.get('/user/getCouId',{
        params:{userid:id}
    })
}